package test00.test02;


/**
 * @Author lzp
 * @Date 2024-04-09
 */
public class test02 {
    public static void main(String[] args) {
        //匿名内部类 实现
        Thread t = new Thread(new RunnableImpl()) {
            @Override
            public void run() {
                for (int i = 0; i <10; i++) {
                    System.out.println("好好学习，天天向上");
                }
            }
        };
        t.start();

    }
}
